package com.github.baichuan.application.scaffold.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "找回密码")
@RequestMapping("/retrieve-password")
public class RetrievePasswordController {

    @Operation(summary = "邮箱找回密码")
    @PostMapping("/email")
    public ResponseEntity byEmail(@RequestHeader("x-application-code") @Parameter(hidden = true) String application){
        return null;
    }

    @Operation(summary = "短信找回密码")
    @PostMapping("/sms")
    public ResponseEntity bySms(@RequestHeader("x-application-code") @Parameter(hidden = true) String application){
        return null;
    }

    @Operation(summary = "重置密码")
    @PostMapping("/reset")
    public ResponseEntity reset(@RequestHeader("x-application-code") @Parameter(hidden = true) String application){

        return null;
    }
}
